//
//  ScanTableViewCell.m
//  bluetooth
//
//  Created by 周季阳 on 15/6/17.
//  Copyright (c) 2015年 switch. All rights reserved.
//

#import "ScanTableViewCell.h"
#import "UIViewAdditions.h"

@implementation ScanTableViewCell
@synthesize zIconImageView,zTitle,zLineView;
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        zIconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(30, 8, 24, 24)];
        zIconImageView.userInteractionEnabled = NO;
        [self addSubview:zIconImageView];
        
        zTitle = [[UILabel alloc]initWithFrame:CGRectMake(zIconImageView.right+5, 0, 80, 40)];
        zTitle.textColor = [UIColor blackColor];
        zTitle.textAlignment = NSTextAlignmentLeft;
        zTitle.font = [UIFont systemFontOfSize:14];
        zTitle.backgroundColor = [UIColor clearColor];
        [self addSubview:zTitle];
        
        zLineView = [[UIView alloc]initWithFrame:CGRectMake(10, 39, SCREEN_WIDTH-20, 0.5)];
        zLineView.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:zLineView];
        
        
        
    }
    return self;
}

@end
